package com.antoco.operation.bigscreen.model.entity;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 人员
 */
@Entity
@Getter
@Setter
@ToString
@Table(name = "t_user")
public class User implements AbstractEntity<String>, Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * ID
   */
  @Id
  @Column(name = "id", nullable = false)
  private String id;

  /**
   * 姓名
   */
  @Column(name = "name")
  private String name;

  /**
   * 账号
   */
  @Column(name = "code")
  private String code;

  /**
   * 密码
   */
  @Column(name = "pass_word")
  private String password;

  /**
   * 昵称++
   */
  @Column(name = "nickname")
  private String nickname;

  /**
   * 性别
   */
  @Column(name = "sex")
  private String sex;

  /**
   * 电话
   */
  @Column(name = "phone")
  private String phone;

  /**
   * 是否实名认证++
   */
  @Column(name = "real_name_state")
  private String realNameState;

  /**
   * 身份证号++
   */
  @Column(name = "id_card")
  private String idCard;

  /**
   * 最后登录时间++
   */
  @Column(name = "last_login_time")
  private Timestamp lastLoginTime;

  /**
   * 人脸识别标识++
   */
  @Column(name = "face_id")
  private String faceId;

  /**
   * 微信默认标识++
   */
  @Column(name = "weixin_oper_id")
  private String weixinOperId;

  /**
   * 备注
   */
  @Column(name = "remark")
  private String remark;

  /**
   * 创建时间
   */
  @Column(name = "create_date")
  private Timestamp createDate;

  /**
   * 记录状态，有效、已删除
   */
  @Column(name = "rec_state")
  private String recState;

  /**
   * 记录状态时间
   */
  @Column(name = "rec_state_date")
  private Timestamp recStateDate;

  /**
   * 分区城市标识
   */
  @Column(name = "partition_city_id")
  private String partitionCityId;

  /**
   * 分区年份
   */
  @Column(name = "partition_year")
  private String partitionYear;
}
